import request from '@/utils/request'

// 查询枪弹出入流水列表
export function listRecord(query) {
  return request({
    url: '/service/record/list',
    method: 'get',
    params: query
  })
}

export function listRecordSummary(query) {  
  return request({    
    url: '/service/record/summary/list',    
    method: 'get',    
    params: query  
  })
}

// 查询枪弹出入流水详细
export function getRecord(id) {
  return request({
    url: '/service/record/' + id,
    method: 'get'
  })
}

// 新增枪弹出入流水
export function addRecord(data) {
  return request({
    url: '/service/record',
    method: 'post',
    data: data
  })
}

// 修改枪弹出入流水
export function updateRecord(data) {
  return request({
    url: '/service/record',
    method: 'put',
    data: data
  })
}

// 删除枪弹出入流水
export function delRecord(id) {
  return request({
    url: '/service/record/' + id,
    method: 'delete'
  })
}
